package com.jiot.exce;

	public enum EnumError {
		
//		PASSWORD_FORMAT_ERROR(4042,"密码格式错误"),
		USER_NOT_LOGIN(4045,"未登录"),
		ACCOUNT_ERROR(4044,"账号错误"),
		PHONE_ERROR(4043,"手机号错误"),
		PHONE_NO(4042,"手机号不存在"),
		ACCOUNT_HAVE(4041,"账号已存在"),
		REGISTERED_PHONE(4002,"该手机号已注册"),
		
		STRING_TOO_SIZE(4040,"字符串过长"),
		NICK_NAME_NULL(4039,"昵称为空"),
		NICK_NAME_TOO_SIZE(4038,"昵称过长"),
		NO_EDIT_OTHER_USER(4037,"不可编辑他人信息"),
		C2_V_NO_IMG_EXT(4036,"上传文件格式不正确"),
		SQL_STORAGE_ERROR(4026,"数据库存储失败"),
		ID_NUMBER_FORMAT_ERROR(4026,"身份证号码格式错误"),
		ID_NUMBER(4025,"证件号为空"),
		ID_CARD_TYPE_NULL(4024,"证件类型为空"),
		COUNTRY_NULL(4023,"国籍为空"),
		FIRST_NAME_NULL(4022,"名字为空"),
		LAST_NAME_NULL(4021,"姓氏为空"),
		GET_IP_FAIL(4020,"获取用户IP失败"),
		APP_USER_TOKEN_ERROR(4020,"用户账号TOKEN失效或错误,请重新登录"),
		PASSWORD_ERROR(4019,"密码错误"),
		ACCOUNT_NO(4018,"账号不存在"),
		ACCOUNT_FORMAT_ERROR(4017,"账号格式错误"),
		ACCOUNT_NULL(4016,"账号为空"),
		LANGUAGE_NULL(4015,"请传入语种"),
		EMAIL_NULL(4014,"邮箱为空"),
		EMAIL_FORMAT_ERROR(4013,"邮箱格式错误"),
		SMS_VCode_NULL(4007,"短信验证码为空"),
		PASSWORD_NULL(4006,"密码为空"),
		PHONE_FORMAT_ERROR(4005,"手机号格式错误"),
		PHONE_NULL(4004,"账号为空"),
		SMS_VCode_Sent(3004, "短信验证码已发送"),
		SMS_VCode_Send_Failure(3005, "短信验证码发送失败"),
		SMS_VCode_Send_Success(3003, "短信验证码发送成功"),
		REGISTERED(4002,"该账号已注册"),
		SMS_VCode_INVALID(4003,"验证码无效"),
		PARAMETER_ARE_MISSING(5001,"缺少参数"),
		SYSTEM_ERROR(5001,"系统错误");
		
		
		
		
		
	    private int errorCode;
	    private String errorMsg;
	 
	    private int code;
	    private String msg;
	 
	    private EnumError(int code, String msg) {
	        this.code = code;
	        this.msg = msg;
	    }
	 
	    public int getCode() {
	        return code;
	    }
	 
	    public String getMsg() {
	        return msg;
	    }

		public int getErrorCode() {
			return errorCode;
		}

		public void setErrorCode(int errorCode) {
			this.errorCode = errorCode;
		}

		public String getErrorMsg() {
			return errorMsg;
		}

		public void setErrorMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}

		public void setCode(int code) {
			this.code = code;
		}

		public void setMsg(String msg) {
			this.msg = msg;
		}
	 
	}
	

